<div class="page-header">
	<h1>
		菜单设置 <small>你可以创建最多 3 个一级菜单，每个一级菜单下可以创建最多 5
			个二级菜单。编辑中的菜单不会马上被用户看到，可以放心调试。</small>
	</h1>
</div>
<div class="boxBody bizmenu group">
	<div class="left sidebar_primary">
		<div class="area_hd">
			<h4 class="oh z area_t">
				<span class="area_t_text">菜单管理</span>
				<span class="area_t_opr"> <i  class="fa fa-bars"  	id="sort"></i>
				</span>
				 <span class="area_t_opr"
					id='add_nav_btn'> <i class='fa fa-plus'></i>  
				</span>
			</h4>
		</div>
		<div class="area_bd">
			<div class="nav_list ui-sortable " id="bizmenu">

			</div>
		</div>
	</div>
	<div class="main_primary oh z">
		<div class="area_hd">
			<h4 class="area_t">设置动作</h4>
		</div>
		<div class="area_bd">
			<div id="action_container" class="send">

				<div class="action_area">
					<div id='index' class="action_type" style="padding-top: 40px;display: none">
						<a class="action_btn sendmsg" href="javascript:;"
							onclick="sendmsg()"> <i class="action_icon send_icon"></i><strong
							class="action_btn_text">绑定消息 </strong>
						</a> <a class="action_btn sendapp" href="javascript:;"
							onclick="sendapp()"> <i class="action_icon search_icon"></i><strong
							class="action_btn_text">绑定应用 </strong>
						</a> <a class="action_btn " href="javascript:;"
							onclick="sendurl()"> <i class="action_icon url_icon"></i><strong
							class="action_btn_text">绑定网页 </strong>
						</a>
					</div>
					<div id='app' class="frm">
						<div class="panel-heading  ">
							<h3 class="panel-title">打开应用</h3>
						</div>
						<div class="frm_bd">
							<div class="frm_control_group" id="frm_control_group">

								<div class='chioseDiv tiles'>
								<volist name="myApps" id="app">
								  <if condition="$app.event eq 'menu'">
								     <div class="tile ${tileColor }   left" onclick="setApp(this)"		id='app{$app.id}' aid='{$app.id}'>
												<div class="tile-body text-center">
													<i class='{$app.icon}  med'></i>
													<p class="bottom">{$app.name}</p>
												</div>
												<img src='__PUBLIC__/img/big_sel.png' class='sel'>
											</div>
								  </if>
								  
								</volist>
									
								</div>
							</div>
						</div>
						<div class="tool_bar">
							<a id="editBack" class="red-bg btn" onclick="showIndex()">重新选择</a>
							<a id="editSave" class="blue-bg btn" onclick="saveApp()">绑定应用</a>
						</div>
					</div>
					<div id='url' class="frm form-horizontal left-label">
						<div class="form-group">
							<div class="panel-heading  ">
								<h3 class="panel-title">打开URL</h3>
							</div>
							<div class="col-lg-8">
								<input type="text" class="form-control" placeholder="输入URL"
									id="input_url">
							</div>
						</div>

						<div>
							<a id="editBack" class="red-bg btn" onclick="showIndex()">重新选择</a>
							<a id="editSave" class="blue-bg btn" onclick="saveUrl()">绑定URL</a>
						</div>
					</div>
					<div id="edit" class="action_content send jsMain"
						style="display: none">
						<div class="panel-heading  ">
							<h3 class="panel-title">打开消息</h3>
						</div>
						<div class='msgs'>
						<volist name="graphics" id="gra" >
						<div class="appmsg " id="{$gra.id}">
						       <volist name="gra['articles']" id="art">
						       <if condition="$i eq 0">
						       <div class='item'>
											<div class="appmsg_content">
												<h4 class="appmsg_title">{$art.head_title }</h4>
												<div class="appmsg_info">
													<em class="appmsg_date"></em>
												</div>
												<div class="appmsg_thumb_wrp">
													<img src="{:U('File/downLoad')}/id/{$art.img_id}" style="width: 310px;height: 160px" 	class="appmsg_thumb">
												</div>
												<p class="appmsg_desc">{$art.summary }</p>
											</div>
											 
										</div>
						       <else/>
						       <div id="appmsgItem2" class="appmsg_item js_appmsg_item " data-id="3" data-fileid="">
												<img class="js_appmsg_thumb appmsg_thumb" style="width:310px;height:160px"  src="{:U('File/downLoad')}/id/{$art.img_id}">
												<h4 class="appmsg_title" >
													<a target="_blank" href="javascript:void(0);" onclick="return false;">{$art.head_title}</a>
												</h4>
											</div>
						       </if>
						       </volist>
									<img src='__PUBLIC__/img/big_sel.png' class='sel'>
						</div>
						</volist>
						
						</div>
						<div class="tool_bar" style="margin-left: 20px;margin-top: 0px">
							<a id="editBack" class="red-bg btn" onclick="showIndex()">重新选择</a>
							<a id="editSave" class="blue-bg btn" onclick="saveMsg()">绑定消息</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="pre_access_wrapper m-t" >
	<a class="blue-bg btn btn-med showcase-btn pull-right"   onclick="resume()"  >从备份恢复</a>
	<a class="orange-bg btn btn-med showcase-btn pull-right""   onclick="preview()">预览</a> 
	<a class="blue-bg btn btn-med showcase-btn pull-right"   onclick="save()" id="use">发布</a>
	
</div>
